<?php

namespace app\api\validation;

class Hall extends \think\Validate
{
    protected $rule = [
        'category_id' => 'require',
        'thumb' => 'require',
        'name' => 'require',
        'nick' => 'require',
        'leader' => 'require',
        'mobile' => 'require',
        'address' => 'require',
    ];

    protected $message = [
        'category_id.require' => '分类ID不能为空',
        'thumb.require' => '主图不能为空',
        'name.require' => '宗祠名称不能为空',
        'nick.require' => '字辈不能为空',
        'leader.require' => '联系人不能为空',
        'mobile.require' => '联系方式不能为空',
        'address.require' => '详细地址不能为空',
    ];
}